import Vue from 'vue'
import App from './App.vue'

import "./assets/css/bootstrap.min.css";
import "./assets/css/index.css";

import axios from 'axios';
axios.defaults.baseURL = 'http://127.0.0.1';
// 让 ajax 携带 cookie
axios.defaults.withCredentials = true;
// 设置 post 请求的头部格式
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

Vue.prototype.$ajax = axios

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
}).$mount('#app')
